﻿//======================================================================
//
//        Copyright (C) 苏州逸仙软件    
//        All rights reserved
//
//        filename : testMenu.cs
//        description :
//
//        created by 周济 at 2010/12/10 17:34:53
//        mail:80406241@qq.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace huaguwang.hgmanage.test
{
    public partial class testMenu : System.Web.UI.Page
    {


        protected void Page_Load(object sender, EventArgs e)
        {


            if(!IsPostBack)
            {
                this.Exp_Login("", "");
            }
            Session["zhouji"] = "zhouji";
            WebUserToolBar1.MainInit(
                UserConst.Exp_GetUser,
                UserConst.Exp_GetButtonList,
                (i, but) =>
                {
                    switch(i)
                    {
                        //case 1:
                        //    but.Attributes.Add("onclick", "return GetUpdateCheckDefault();");
                        //    break;
                        //case 2:
                        //    but.Attributes.Add("onclick", "return GetDelCheckDefault();");
                        //    break;
                        default:
                            break;
                    }

                },
               UserConst.Exp_ToolBarErr,
                new huaguwang.WebControls.WebUserToolBar.SelectItem()
                    {
                        FuncGetText = () => TextBox1.Text.Trim(),
                        FuncSetText = v => { TextBox1.Text = v; },
                        Name = TextBox1.ID
                    }
                    );



        }

        protected void WebUserToolBar1_Button0(object sender, EventArgs e)
        {
            var P = this.WebUserToolBar1.MainSetSKey();
            this.Response.Redirect("testMenu_E.aspx?" + P);
        }

        protected void WebUserToolBar1_Button1(object sender, EventArgs e)
        {

        }

        protected void WebUserToolBar1_Button2(object sender, EventArgs e)
        {
            Page.Exp_PageAlter("删除");
        }

        protected void WebUserToolBar1_Button3(object sender, EventArgs e)
        {
            var sss1 = this.WebUserToolBar1.MainGetQuery(this.TextBox1.ID);

            Response.Write("您查询的条件是:" + sss1);
        }
    }
}
